import {
	getRequest,
	postRequest,
	postRequest2,
	postRequest3
} from './request.js'

/* 基础数据模块 */
// export const login = (data, blon) => postRequest('/api/user/login', data, blon)
// 区域数据
export const regionLists = data => postRequest("/index.php/api/region/lists", data, false);
export const industryLists = data => postRequest("/index.php/api/industry/lists", data, false);
// 注册
export const userRegister = data => postRequest("/index.php/api/user/register", data, false);
// 登陆
export const userLogin = data => postRequest("/index.php/api/user/login", data, false);
export const wxlogin = data => postRequest("/index.php/api/user/wxlogin", data, false);
// 用户详情
export const userDetail = data => postRequest("/index.php/api/user/detail", data, true);
// 编辑
export const userEditInfo = data => postRequest("/index.php/api/user/editInfo", data, true);
// 推荐位
export const positionList = data => postRequest("/index.php/api/position.content/lists", data, false);
// 推荐位详情
export const positionDetail = data => postRequest("/index.php/api/position.content/detail", data, false);
// 新闻动态
export const articleQuery = data => postRequest("/index.php/api/article/lists", data, false);
// 详情
export const articleDetail = data => postRequest("/index.php/api/article/Detail", data, false);
// 组织列表
export const organizationList = data => postRequest("/index.php/api/organization/lists", data, false);
// 申报
export const applyAdd = data => postRequest("/index.php/api/apply/add", data, true);
// 申报列表
export const applyList = data => postRequest("/index.php/api/apply/lists", data, true);
// 申报详情
export const applyDetail = data => postRequest("/index.php/api/apply/detail", data, true);
// 消息列表
export const messageList = data => postRequest("/index.php/api/user.message/lists", data, true);
// 活动类型
export const activityType = data => postRequest("/index.php/api/common/activityType", data, true);
// 添加
export const activityAdd = data => postRequest("/index.php/api/activity.record/add", data, true);
// 列表
export const activityList = data => postRequest("/index.php/api/activity.record/lists", data, true);
// 详情
export const activityDetail = data => postRequest("/index.php/api/activity.record/detail", data, true);
// 添加问题
export const problemAdd = data => postRequest("/index.php/api/problem/add", data, true);
// 问题列表
export const problemLists = data => postRequest("/index.php/api/problem/lists", data, true);
// 问题详情
export const problemDetail = data => postRequest("/index.php/api/problem/detail", data, true);
// 用户编辑
export const editInfo = data => postRequest("/index.php/api/user/editInfo", data, true);
// 返乡
export const userBack = data => postRequest("/index.php/api/user/back", data, true);
// 诉求公式
export const publicLists = data => postRequest("/index.php/api/problem/publicLists", data, true);
export const publicDetail = data => postRequest("/index.php/api/problem/publicDetail", data, true);
export const regionOrganizationLists = data => postRequest("/index.php/api/organization/regionOrganizationLists", data, false);
export const regionOrganizationOutlists = data => postRequest("/index.php/api/organization/outlists", data, false);
export const regionOrganizationInlists = data => postRequest("/index.php/api/organization/inlists", data, false);
export const organizationNewList = data => postRequest("/index.php/api/organization/index", data, false);
// 性别数据
export const userSexData = data => postRequest2("/ymadmin.php/bigdata/userSexData", data, true);
// 工作分析
export const userJobData = data => postRequest2("/ymadmin.php/bigdata/userJobData", data, true);
export const industryData = data => postRequest2("/ymadmin.php/user/industryData", data, true);
// 党支部
export const organizationData = data => postRequest2("/ymadmin.php/user/organizationData", data, true);
export const ymadminMessage = data => postRequest2("/ymadmin.php/user.message/lists", data, true);
export const userList = data => postRequest2("/ymadmin.php/user/lists", data, true);
// 地点
export const regionData = data => postRequest2("/ymadmin.php/user/regionData", data, true);
// 申报列表
export const organizationListAd = data => postRequest2("/ymadmin.php/apply/lists", data, true);
// 通知
export const sendMessage = data => postRequest2("/ymadmin.php/user/sendMessage", data, true);
export const sendMessageAdmin = data => postRequest2("/ymadmin.php/admin/sendMessage", data, true);
// 问题列表
export const problemListAd = data => postRequest2("/ymadmin.php/problem/lists", data, true);
export const problemDetailAd = data => postRequest2("/ymadmin.php/problem/detail", data, true);
export const adminWxbind = data => postRequest2("/ymadmin.php/admin/wxbind", data, true);
export const adminWxunbind = data => postRequest2("/ymadmin.php/admin/wxunbind", data, true);
export const adminDetail = data => postRequest2("/ymadmin.php/admin/info", data, true);
export const adminLists = data => postRequest2("/ymadmin.php/admin/lists", data, true);